import 'package:json_annotation/json_annotation.dart';

@JsonSerializable()
class MessageDto {
  String title;
  String image;
  String desc;

  MessageDto(this.title, this.image, this.desc);

  MessageDto.fromJson(Map<String, dynamic> json)
      : title = json['title'],
        image = json['image'],
        desc = json['desc'];

  Map<String, dynamic> toJson() =>
      <String, dynamic>{
        'title': title,
        'image': image,
        'image': image,
        'desc': desc,
      };

}



